package com.bridgeintelligent.tag.constants;

import java.util.ArrayList;
import java.util.List;

public interface TagConstants {

    class Workflow {
        public static final String ID_10001 = Permissions.WORKFLOW_DEFINITION_10001.getCode(); // 创建自定义标签
        public static final String ID_10002 = Permissions.WORKFLOW_DEFINITION_10002.getCode(); // 修改自定义标签
        public static final String ID_10003 = Permissions.WORKFLOW_DEFINITION_10003.getCode(); // 删除自定义标签
        public static final String ID_10004 = Permissions.WORKFLOW_DEFINITION_10004.getCode(); // 清理自定义标签
        public static final String ID_10005 = Permissions.WORKFLOW_DEFINITION_10005.getCode(); // 上传新增自定义标签客户
        public static final String ID_10006 = Permissions.WORKFLOW_DEFINITION_10006.getCode(); // 上传删除自定义标签客户
        public static final String ID_10007 = Permissions.WORKFLOW_DEFINITION_10007.getCode(); // 创建组合标签
        public static final String ID_10008 = Permissions.WORKFLOW_DEFINITION_10008.getCode(); // 导出客群
        public static final String ID_10009 = Permissions.WORKFLOW_DEFINITION_10009.getCode(); // 发布客群
        public static final String ID_10010 = Permissions.WORKFLOW_DEFINITION_10010.getCode(); // 删除客群
        public static final String ID_10016 = Permissions.WORKFLOW_DEFINITION_10016.getCode(); // 下发客群

        public static List<String> values() {
            List<String> permissions = new ArrayList<>();
            for (Permissions permission : Permissions.values()) {
                if (permission.name().startsWith("WORKFLOW_DEFINITION")) {
                    permissions.add(permission.getCode());
                }
            }
            return permissions;
        }
    }

    String SESSION_KEY_OF_USER = "UserObject";
    String SESSION_KEY_OF_ROLES = "Roles";
    String SESSION_KEY_OF_PERMISSION = "Permissions";
    String SESSION_KEY_OF_TAGPERMS = "TagPerms";

    String PRIVATE_CATALOGID = "私有标签";
    String SENSITIVE_CATALOG = "敏感信息";
}
